#include <iostream>

//struct alignas(16) MyStruct {
/*
struct MyStruct { // alignof : 8
    double b;
    int a;
    short s;
    char c;
}; // 16
*/
struct MyStruct {
   int a;
   short s;
   double b;
   char c;
}; // 24

int main() {
    MyStruct s;
    // 16
    std::cout << "Alignment of MyStruct: " << alignof(MyStruct) << std::endl;
    std::cout << "sizeof(MyStuct): " << sizeof(MyStruct) << std::endl;
    return 0;
}


